import request from '@/utils/request'

// 查询食品表列表
export function listFood(query) {

  return request({
    url: '/shop/food/list',
    method: 'get',
    params: query
  })
}
export function listFood1(query) {
  return request({
    url: '/shop/food/list',
    method: 'get',
    params: query
  })
}

// 查询食品表详细
export function getFood(fid) {
  return request({
    url: '/shop/food/' + fid,
    method: 'get'
  })
}

// 新增食品表
export function addFood(data) {
  return request({
    url: '/shop/food',
    method: 'post',
    data: data
  })
}

// 修改食品表
export function updateFood(data) {
  return request({
    url: '/shop/food',
    method: 'put',
    data: data
  })
}

// 删除食品表
export function delFood(fid) {
  return request({
    url: '/shop/food/' + fid,
    method: 'delete'
  })
}
// 查询供应商组
